﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003CF RID: 975
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DifficultyAdjustmentUpdateDataScRsp : IMessage<DifficultyAdjustmentUpdateDataScRsp>, IMessage, IEquatable<DifficultyAdjustmentUpdateDataScRsp>, IDeepCloneable<DifficultyAdjustmentUpdateDataScRsp>, IBufferMessage
	{
		// Token: 0x17000C70 RID: 3184
		// (get) Token: 0x06002B75 RID: 11125 RVA: 0x00077CAF File Offset: 0x00075EAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DifficultyAdjustmentUpdateDataScRsp> Parser
		{
			get
			{
				return DifficultyAdjustmentUpdateDataScRsp._parser;
			}
		}

		// Token: 0x17000C71 RID: 3185
		// (get) Token: 0x06002B76 RID: 11126 RVA: 0x00077CB6 File Offset: 0x00075EB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DifficultyAdjustmentUpdateDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000C72 RID: 3186
		// (get) Token: 0x06002B77 RID: 11127 RVA: 0x00077CC8 File Offset: 0x00075EC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DifficultyAdjustmentUpdateDataScRsp.Descriptor;
			}
		}

		// Token: 0x06002B78 RID: 11128 RVA: 0x00077CCF File Offset: 0x00075ECF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DifficultyAdjustmentUpdateDataScRsp()
		{
		}

		// Token: 0x06002B79 RID: 11129 RVA: 0x00077CE4 File Offset: 0x00075EE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DifficultyAdjustmentUpdateDataScRsp(DifficultyAdjustmentUpdateDataScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.data_ = ((other.data_ != null) ? other.data_.Clone() : null);
			this.contentPackageList_ = other.contentPackageList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002B7A RID: 11130 RVA: 0x00077D41 File Offset: 0x00075F41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DifficultyAdjustmentUpdateDataScRsp Clone()
		{
			return new DifficultyAdjustmentUpdateDataScRsp(this);
		}

		// Token: 0x17000C73 RID: 3187
		// (get) Token: 0x06002B7B RID: 11131 RVA: 0x00077D49 File Offset: 0x00075F49
		// (set) Token: 0x06002B7C RID: 11132 RVA: 0x00077D51 File Offset: 0x00075F51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000C74 RID: 3188
		// (get) Token: 0x06002B7D RID: 11133 RVA: 0x00077D5A File Offset: 0x00075F5A
		// (set) Token: 0x06002B7E RID: 11134 RVA: 0x00077D62 File Offset: 0x00075F62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public JLLIFGDBMIO Data
		{
			get
			{
				return this.data_;
			}
			set
			{
				this.data_ = value;
			}
		}

		// Token: 0x17000C75 RID: 3189
		// (get) Token: 0x06002B7F RID: 11135 RVA: 0x00077D6B File Offset: 0x00075F6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<JLLIFGDBMIO> ContentPackageList
		{
			get
			{
				return this.contentPackageList_;
			}
		}

		// Token: 0x06002B80 RID: 11136 RVA: 0x00077D73 File Offset: 0x00075F73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DifficultyAdjustmentUpdateDataScRsp);
		}

		// Token: 0x06002B81 RID: 11137 RVA: 0x00077D84 File Offset: 0x00075F84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DifficultyAdjustmentUpdateDataScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Data, other.Data) && this.contentPackageList_.Equals(other.contentPackageList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002B82 RID: 11138 RVA: 0x00077DE8 File Offset: 0x00075FE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.data_ != null)
			{
				num ^= this.Data.GetHashCode();
			}
			num ^= this.contentPackageList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002B83 RID: 11139 RVA: 0x00077E4B File Offset: 0x0007604B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002B84 RID: 11140 RVA: 0x00077E53 File Offset: 0x00076053
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002B85 RID: 11141 RVA: 0x00077E5C File Offset: 0x0007605C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.data_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.Data);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			this.contentPackageList_.WriteTo(ref output, DifficultyAdjustmentUpdateDataScRsp._repeated_contentPackageList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002B86 RID: 11142 RVA: 0x00077EC8 File Offset: 0x000760C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.data_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Data);
			}
			num += this.contentPackageList_.CalculateSize(DifficultyAdjustmentUpdateDataScRsp._repeated_contentPackageList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002B87 RID: 11143 RVA: 0x00077F34 File Offset: 0x00076134
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DifficultyAdjustmentUpdateDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.data_ != null)
			{
				if (this.data_ == null)
				{
					this.Data = new JLLIFGDBMIO();
				}
				this.Data.MergeFrom(other.Data);
			}
			this.contentPackageList_.Add(other.contentPackageList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002B88 RID: 11144 RVA: 0x00077FAD File Offset: 0x000761AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002B89 RID: 11145 RVA: 0x00077FB8 File Offset: 0x000761B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 66U)
				{
					if (num != 104U)
					{
						if (num != 122U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.contentPackageList_.AddEntriesFrom(ref input, DifficultyAdjustmentUpdateDataScRsp._repeated_contentPackageList_codec);
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.data_ == null)
					{
						this.Data = new JLLIFGDBMIO();
					}
					input.ReadMessage(this.Data);
				}
			}
		}

		// Token: 0x0400112C RID: 4396
		private static readonly MessageParser<DifficultyAdjustmentUpdateDataScRsp> _parser = new MessageParser<DifficultyAdjustmentUpdateDataScRsp>(() => new DifficultyAdjustmentUpdateDataScRsp());

		// Token: 0x0400112D RID: 4397
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400112E RID: 4398
		public const int RetcodeFieldNumber = 13;

		// Token: 0x0400112F RID: 4399
		private uint retcode_;

		// Token: 0x04001130 RID: 4400
		public const int DataFieldNumber = 8;

		// Token: 0x04001131 RID: 4401
		private JLLIFGDBMIO data_;

		// Token: 0x04001132 RID: 4402
		public const int ContentPackageListFieldNumber = 15;

		// Token: 0x04001133 RID: 4403
		private static readonly FieldCodec<JLLIFGDBMIO> _repeated_contentPackageList_codec = FieldCodec.ForMessage<JLLIFGDBMIO>(122U, JLLIFGDBMIO.Parser);

		// Token: 0x04001134 RID: 4404
		private readonly RepeatedField<JLLIFGDBMIO> contentPackageList_ = new RepeatedField<JLLIFGDBMIO>();
	}
}
